package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"order/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//用户密码登录
	beego.Router("/user/login", &controllers.LoginController{}, "GET:UserLogin")
	//图片上传并入库
	beego.Router("/api/upload_by_order", &controllers.OrderController{}, "POST:UploadByOrder")
}
